% Authors: Francisco Pinto & Bruno Maia
% Date: 22-09-2011
%
% This file is part of "Breakthrough"

% Constants - a set of rules for game generation and display

home_rows(2).
blank_rows(4).

vertical_separator_piece('+----').
horizontal_separator_piece('|').

blank_piece('    ', 1).
blank_piece('    ', 2).

player1_piece('+--+', 1).
player1_piece('+--+', 2).

player2_piece('/\'\'\\', 1).
player2_piece('\\__/', 2).

player1_representation(p1).
player2_representation(p2).
blank_representation(b).

opposing_player(p1, p2).
opposing_player(p2, p1).

player_text(p1, 'Player 1').
player_text(p2, 'Player 2').

save_file('save.sav').

valid_difficulty(1).
valid_difficulty(2).
valid_difficulty(3).

board_size(X) :-
  home_rows(H),
  blank_rows(M),
  X is H*2 + M.
